package cn.kzgg.org.mapper;

import cn.kzgg.basic.mapper.BaseMapper;
import cn.kzgg.org.domain.Employee;
import cn.kzgg.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByUsername(String username);

    /**
     * Employee根据shopId选择
     * @param shopId
     * @return
     */
    Employee loadByShopId(Long shopId);


    /**
     *根据LogininfoId查询员工
     * @param id
     * @return
     */
    Employee loadByLogininfoId(Long id);

    /**
     * 查询店铺的店员
     * @param shopId
     * @return
     */
    List<Employee> queryShopEmployee(Long shopId);
}
